local extension = Package:new("klgod")
extension.extensionName = "konglong"
extension:loadSkillSkelsByPath("./packages/konglong/pkg/klgod/skills")

Fk:loadTranslationTable{
  ["klgod"] = "恐龙·神通",
}


General:new(extension, "klgod__xusheng", "god", 4):addSkills{"hx__yicheng", "hx__kuijun"}
-- 1神徐盛
Fk:loadTranslationTable{
  ["klgod__xusheng"] = "神徐盛",
  ["designer:klgod__xusheng"] = "非电竞恐龙",
  ["hx__yicheng"] = "疑城",
  [":hx__yicheng"] = "锁定技，每轮每名角色限一次，当你使用【杀】指定目标时，若其区域内有牌，你令目标角色选择一个有牌的区域并选择一项：1.其交给你该区域内的所有牌，此回合结束后其摸X张牌（X为其以此法失去的牌数）；2.其失去2点体力并弃置该区域内的牌令此【杀】无效。",
  ["hx__kuijun"] = "溃军",
  ["#hx__kuijun_card"] = "溃军",
  ["#hx__kuijun_attackrange"] = "溃军",
  ["#hx__kuijun_chusha"] = "溃军",
  [":hx__kuijun"] = "锁定技，你的【桃】视为【酒】，你的【酒】视为【桃】，你的攻击范围＋3。每回合每项限一次，当你使用【杀】指定目标后，若目标角色的牌少于你，你选择一项:1.此【杀】伤害+1；2.此【杀】额外结算一次；3.此【杀】结算后增加一次出杀次数；4.此【杀】结算后回收此牌。",
  ["#hx__yicheng1"] = "交给%src该区域内的所有牌，此回合结束后你摸X张牌（X为你以此法失去的牌数）",
  ["#hx__yicheng2"] = "失去2点体力并弃置该区域内的牌，令此【杀】无效",
  ["@hx__yicheng_draw"] = "疑城摸牌数",
  ["@@hx__yicheng-round"] = "已疑城",
  ["hx__yicheng_card-hand"] = "手牌区",
  ["hx__yicheng_card-equip"] = "装备区",
  ["hx__yicheng_card-judge"] = "判定区",
  ["@hx__kuijun_select-turn"] = "溃军已选",
  ["#hx__kuijun_damage"] = "此【杀】伤害+1",
  ["#hx__kuijun_extra"] = "此【杀】额外结算一次",
  ["#hx__kuijun_slash"] = "此【杀】结算后增加一次出杀次数",
  ["#hx__kuijun_get"] = "获得此【杀】",
  ["@hx__kuijun_slash"] = "出杀次数+",
  ["$hx__yicheng1"] = "魏虽武骑千群，临江亦无所用!",
  ["$hx__yicheng2"] = "我自岿然江东镇，霸涛怒海功业存!",
  ["$hx__kuijun1"] = "横刀长江畔，贼子安敢前！",
  ["$hx__kuijun2"] = "敌军卸甲怠备，待盛直捣黄龙！",
  ["~klgod__xusheng"] = "来日长江激湍阻敌，或是盛忠魂所化……",
  ["!klgod__xusheng"] = "广陵百里疑城在，不教片帆过江来！",
}

-- 2神袁绍
General:new(extension, "klgod__yuanshao", "god", 4):addSkills{"hx__renfeng","hx__lunshi" }
Fk:loadTranslationTable{
  ["klgod__yuanshao"] = "神袁绍",
  ["designer:klgod__yuanshao"] = "非电竞恐龙",
  ["hx__renfeng"] = "刃锋",
  [":hx__renfeng"] = "游戏开始时，你可以令X名角色依次从牌堆中获得并使用一张武器牌（X为场上存活人数）。当你受到或造成1点伤害伤害时，若你或目标角色装备区有武器牌，你选择一项：1.失去1点体力并弃置一张【杀】从牌堆中随机获得一张伤害类锦囊牌；2.你可以发动一次判定根据判定结果获得一张对应附魔效果的【杀】（①.判定基本：伤害+1；②.判定锦囊：不计次数；③.判定装备：额外结算一次）。",
  ["hx__lunshi"] = "论势",
  [":hx__lunshi"] = "连招技（伤害类锦囊牌+【杀】），你可以摸X张牌并回复1点体力，然后依次弃置此【杀】目标和相邻其他角色的一张手牌（X为你本回合使用伤害类锦囊牌和【杀】的总次数且至多为3）。",
  ["#hx__renfeng_slash"] = "判定获得对应附魔【杀】",
  ["#hx__renfeng_trick"] = "弃杀失去1体力获得伤害锦囊",
  ["@@hx__renfeng_notimes-inhand"] = "不计次数",
  ["@@hx__renfeng_damage-inhand"] = "伤害+1",
  ["@@hx__renfeng_extra-inhand"] = "额外结算1次",
  ["#hx__lunshi-prey"] = "论势：弃置 %dest 一张手牌",
  ["@hx__lunshi_count-turn"] = "论势",
  ["$hx__renfeng1"] = "你？却几次三番妄议废嫡长而立庶，岂不是蓄意谋反吗！",
  ["$hx__renfeng2"] = "我剑也未尝不利！",
  ["$hx__lunshi1"] = "哼！天下之事在皇帝，在诸位忠臣。",
  ["$hx__lunshi2"] = "你？只不过是一篡逆之辈，又待怎样？",
  ["~klgod__yuanshao"] = "袁绍啊袁绍，妄为汉臣，枉食君禄……",
}


General:new(extension, "klgod__peixiu", "god", 3):addSkill("hx__jisuan2")
-- 3神裴秀
Fk:loadTranslationTable{
  ["klgod__peixiu"] = "神裴秀",
  ["designer:klgod__peixiu"] = "非电竞恐龙",
  ["hx__jisuan2"] = "计算",
  [":hx__jisuan2"] = "锁定技，当你使用或打出一张牌时，若该牌的点数是上一张牌点数的倍数或可以被上一张牌的点数整除，你选择一项：1.摸X张牌；2.令你使用的下一张牌不计次数限制且结算次数+1或伤害+1（X为该技能本回合的发动次数且至多为3），每当你发动3次“计算”，你重置“计算”的发动次数。",
  ["@hx__jisuan2_number"] = "计算点数",
  ["@hx__jisuan2_count-turn"] = "计算次数",
  ["@@hx__jisuan2"] = "计算",
  ["$hx__jisuan21"] = "山川地势虽恶，自臣亲衡其势，力行以绘。",
  ["$hx__jisuan22"] = "爵分五等，明一方善恶，笼天下势力。",
  ["~klgod__peixiu"] = "崇山峻险，恶水难行……",
  ["!klgod__peixiu"] = "持规尺以定方圆，绘舆图以伏恶势！",
}


local klgod__caochong = General:new(extension, "klgod__caochong", "god", 3,4)
-- 4神曹冲
klgod__caochong:addSkill("hx__chuanshi")
klgod__caochong:addRelatedSkills{"ofl_shiji__huishi","chengxiang","ol_ex__jieming", "ex__yiji"}
Fk:loadTranslationTable{
  ["klgod__caochong"] = "神曹冲",
  ["designer:klgod__caochong"] = "非电竞恐龙",
  ["hx__chuanshi"] = "船石",
  [":hx__chuanshi"] = "锁定技，当你的体力值为4/3/2/1时，你视为拥有“慧识”/“称象”/“节命”/“遗计”。游戏开始时，若你有“慧识”，你减1点体力上限。",
  ["#ofl_shiji__huishi-ask"] = "慧识：是否继续判定？",
  ["#ofl_shiji__huishi-choose"] = "慧识：你可以令一名角色获得这些判定牌",
  ["$hx__chuanshi"] = "人非圣贤，孰能无过？宽而宥之，其心益笃。",
  ["$ofl_shiji__huishi_klgod__caochong"] = "白雀身小若此，何可比象之斤重。",
  ["$chengxiang_klgod__caochong"] = "若吾称得象重，文直须应我之约。",
  ["$ol_ex__jieming_klgod__caochong"] = "前有狡狐搏兔，吾且上前救之。",
  ["$ex__yiji_klgod__caochong"] = "世人皆怀仁心，天下岂非大同。",
  ["~klgod__caochong"] = "文直勿忘故友，清明常加追思。",
}

General:new(extension, "klgod__huanggai", "god", 4):addSkills{"hx__shouxing", "hx__shuaijian"}
-- 5神黄盖
Fk:loadTranslationTable{
  ["klgod__huanggai"] = "神黄盖",
  ["designer:klgod__huanggai"] = "非电竞恐龙",
  ["hx__shouxing"] = "受刑",
  [":hx__shouxing"] = "锁定技，游戏开始时，你令你使用【杀】的次数-1。你即将受到的伤害视为失去体力。每当你即将失去1点体力时，你摸两张牌。",
  ["hx__shuaijian"] = "率舰",
  [":hx__shuaijian"] = "准备阶段开始时，你可以选择一名其他角色，然后你与其各失去1点体力。每当你的体力值变化后：你计算与其他角色的距离-1，且你使用【杀】的次数上限+1，每回合限一次，你可以选择一名角色视为使用一张【火攻】。",
  ["@hx__shuaijian"] = "率舰",
  ["@@hx__shouxing"] = "受刑",
  ["$hx__shouxing1"] = "此身可为浮江苇草，亦可为燎原之萑！",
  ["$hx__shouxing2"] = "竭忠守土之心，非死不足以证！",
  ["$hx__shuaijian1"] = "某扶孙氏三代，今日方知何为正道！",
  ["$hx__shuaijian2"] = "老夫以身为局，不知丞相可敢一试！",
  ["~klgod__huanggai"] = "恨不能以残躯作薪，再添此滔天之火……",
  ["!klgod__huanggai"] = "这焚天之火，足使天下不敢觊吴！",
}

-- 6神董卓
General:new(extension, "klgod__dongzhuo", "god", 10):addSkills{"hx__xudai","hx__wajie"}
Fk:loadTranslationTable{
  ["klgod__dongzhuo"] = "神董卓",
  ["designer:klgod__dongzhuo"] = "非电竞恐龙",
  ["hx__xudai"] = "畜待",
  [":hx__xudai"] = "锁定技，你于摸牌阶段获得的非武器防具牌均视为【无中生有】。每轮结束时，你受到X点无来源伤害（X为场上势力数量的一半向下取整且至少为1）。你的攻击范围+1，你的武器牌防具牌均视为【酒】，你使用【酒】次数+1，你使用【杀】指定男性角色时其需弃置一张牌才能响应，你使用【杀】指定女性角色时其需要两张【闪】才能抵消。",
  ["hx__wajie"] = "瓦解",
  [":hx__wajie"] = "限定技，每轮开始时，你可以失去1点体力并减少1点体力上限，直到本轮结束，你令其他角色结束阶段开始时选择一项：1.失去一点体力并弃置两张牌；2.减少1点体力上限。",
  ["#hx__xudai-discard"] = "畜待：你需弃置一张牌，否则不能响应此%arg",
  ["@@hx__wajie-round"] = "瓦解",
  ["#hx__wajie-discard"] = "失去1点体力并弃置两张牌",
  ["#hx__wajie-maxhp"] = "减1点体力上限",
  ["$hx__xudai1"] = "有不从者，斩！",
  ["$hx__xudai2"] = "（拔剑声）尔要试试我宝剑是否锋利吗？",
  ["$hx__wajie1"] = "天下事在我，我今为之，谁敢不从？",
  ["$hx__wajie2"] = "（拍桌声）哼！今日是顺我者昌，逆我者亡！",
  ["~klgod__dongzhuo"] = "（人声鼎沸）我儿奉先何在呀？",
}

-- 7神张让
General:new(extension, "klgod__zhangrang", "god", 1):addSkills{"hx__fuquan","hx__zhangchao","hx__hunzheng"}
Fk:loadTranslationTable{
  ["klgod__zhangrang"] = "神张让",
  ["designer:klgod__zhangrang"] = "非电竞恐龙",
  ["hx__fuquan"] = "腐权",
  [":hx__fuquan"] = "锁定技，游戏开始时或当有角色死亡时，若你的当前体力值和体力上限为全场唯一最低，你增加1点体力上限并回复1点体力。",
  ["hx__zhangchao"] = "掌朝",
  [":hx__zhangchao"] = "锁定技，每回合每种类型的牌限一次，当一名角色打出或使用一张牌时，你摸一张牌。",
  ["hx__hunzheng"] = "混政",
  [":hx__hunzheng"] = "每回合限一次，你可以将一张牌当做任意一张基本牌或锦囊牌使用或打出，若如此做，你摸一张牌。",
  ["@hx__zhangchao-turn"] = "掌朝",
  ["@hx__zhangchao2-turn"] = "掌朝",
  ["#hx__hunzheng"] = "混政：将一张牌当任意基本牌或锦囊牌使用或打出，然后摸一张牌",
  ["$hx__fuquan1"] = "皇上视我如父，天下之事，岂可不顺我意？",
  ["$hx__zhangchao1"] = "诸事由我决之，可有何人不服？",
  ["$hx__hunzheng1"] = "功名利禄，只需我一言便可！",
  ["~klgod__zhangrang"] = "皇上，皇上救我啊",
  ["!klgod__zhangrang"] = "我等万人之上，也不在何人之下啊，哈哈哈……",
}


-- 10神黄月英
local huangyueying = General:new(extension, "klgod__huangyueying", "god", 3, 3, General.Female)
huangyueying:addSkills{"kl__poji", "kl__shengong", "kl__chuanshu" }
huangyueying:addRelatedSkill("kl__jizhi")
Fk:loadTranslationTable{
  ["klgod__huangyueying"] = "神黄月英",
  ["designer:klgod__huangyueying"] = "恐龙王乐园",

  ["~klgod__huangyueying"] = "才略纵如泉涌，终有竭绝之日……",
}


for _, g in ipairs(extension.generals) do
  local str = "designer:"..g.name
  if not Fk.translations["zh_CN"][str] then
    Fk.translations["zh_CN"][str] = "非电竞恐龙"
  end
end

return extension